SourceChipSupportingButton

fun SourceChipSupportingButton(text: String, size: SourceChip.Size, onClick: () -> Unit, modifier: Modifier = Modifier, style: SourceChip.Style = SourceChip.Style.SupportingButton, iconOrImage: ChipDecoration = ChipDecoration.None)

Displays a SourceChip component that acts as a button. This button is designed to be used inline with a row of chips.

The sizing and style of the button is same as the chips.

Parameters

text

The text displayed inside the button.

size

The size of the button. See SourceChip.Size for available options.

onClick

Callback triggered when the button is clicked.

modifier

Modifier to adjust the button layout or appearance.

style

The style of the button, including text colour, background colour, border, and more. Defaults to SourceChip.Style.SupportingButton.

iconOrImage

Optional content to display an icon/image before the title.